﻿using System;
using System.Web;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data;
using System.Data.Entity;
//using System.Data.Entity.Database;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Diagnostics;
using System.Web.Mvc;
namespace FILSTARTUPS_CMS.Models
{
    public class Pages
    {
        [Key]
        public int pageidPK { get; set; }

        [Column]
        [Display(Name="Page name")]
        [Required(ErrorMessage="Page name is required")]
        public string Pagetitle { get; set; }

        [Column]
        [Display(Name="Page Description")]
        public string Pagedescription { get; set; }

        [DisplayFormat(DataFormatString = "{0:MMMM d, yyyy}")]
        public DateTime datecreated { get; set; }

        [Display(Name="Display Mode")]
        public int routingidFK { get; set; }
    }
    public class PageGrid
    {
        public int pageidPK { get; set; }
        public string pagename { get; set; }
        public string routing { get; set; }
        public string pagedescription { get; set; }
        [DisplayFormat(DataFormatString = "{0:MMMM d, yyyy}")]
        public DateTime datecreated { get; set; }
    }
}